<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <title>User List</title>
</head>
<body>
<h1>Hello</h1>
<a th:href="@{/goToAdd}">增加</a>
<table>
  <thead>
  <tr>
    <th>Id</th>
    <th>User Name</th>
  </tr>
  </thead>
  <tbody>
  <tr th:each="user : ${users}">
    <td th:text="${user.id}"></td>
    <td th:text="${user.userName}"></td>
    <td>
    <form action="/delete" method="post">
      <button type="submit" name="uid" th:value="${user.id}">Delete</button>
    </form>
    </td>
  </tr>
  </tbody>
</table>
</body>
</html>